﻿using System.ComponentModel;

namespace 天离安全_天擎.Tl_Class_Services
{
    /// <summary>
    /// 默认端口
    /// </summary>
    public class PortScanDefault
    {
        /// <summary>
        /// 线程
        /// </summary>
        [DefaultValue(10)]
        public int Max { get; set; } = 10;
        /// <summary>
        /// 扫描地址
        /// </summary>
        [DefaultValue("127.0.0.1")]
        public string Ip { get; set; } = "127.0.0.1";
        /// <summary>
        /// 创建一个数组来存储特定的端口
        /// </summary>
        [DefaultValue(new int[] { 21, 22, 23, 80, 81, 82, 135, 137, 139, 443, 445, 1433, 3389, 3306, 5432, 6379, 8080, 8888, 27017, 11211, 1521, 8899, 4444, 993, 995, 8082, 8081, 8083, 8084, 8085, 8443, 8880, 8881, 8882, 8883, 8884, 8885, 9090, 9091, 9092, 9093, 9094, 9095, 9080, 9010, 9020, 9030, 9040, 9050, 9060, 9070, 9200, 50000, 7474 })]
        public int[] Ports { get; set; } = new int[] { 21, 22, 23, 80, 81, 82, 135, 137, 139, 443, 445, 1433, 3389, 3306, 5432, 6379, 8080, 8888, 27017, 11211, 1521, 8899, 4444, 993, 995, 8082, 8081, 8083, 8084, 8085, 8443, 8880, 8881, 8882, 8883, 8884, 8885, 9090, 9091, 9092, 9093, 9094, 9095, 9080, 9010, 9020, 9030, 9040, 9050, 9060, 9070, 9200, 50000, 7474 };
    }
}
